package com.ai.wxy.spring.jpa.sys.entity;

import com.ai.spring.data.jpa.domain.JpaEntity;
import lombok.Data;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;
import java.util.Date;

/**
 * 请求服务接口配置
 *
 * @author 石头
 * @Date 2019/11/19
 * @Version 1.0
 **/
@Data
@Entity
@Table(name="jpa_sys_conf")
public class SysConf extends JpaEntity {
    /**主键*/
    @Id
    private Long id;
    /**请求编码*/
    @Column(name = "sys_code")
    private String sysCode;
    /**请求参数名称,scope为PATH时有用*/
    @Column(name = "param_name")
    private String paramName;
    /**请求参数类型*/
    @Column(name = "param_type")
    private String paramType;
    /**服务接口ID*/
    @Column(name = "svc_id")
    private String svcId;
    /**服务接口方法*/
    @Column(name = "svc_method")
    private String svcMethod;
    /**请求scope（REQ_PARAM,REQ_BODY,PATH）*/
    @Column(name = "req_scope")
    private String reqScope;
    /**描述*/
    @Column(name = "description")
    private String desc;
    /**状态(0-无效,1-正常,2-冻结)*/
    @Column(name = "status",insertable = false)
    private Integer status;
}
